package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * @Auther xjw
 * @Date 2019/1/19 1725
 * @Description
 */
@TableName(value = "s_logs")
public class Logs {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    @JSONField(name = "DateTime")
    @TableField(value = "DateTime")
    private LocalDateTime dateTime = LocalDateTime.now();

    @JSONField(name = "Operate")
    @TableField(value = "Operate")
    private String operata;

    @JSONField(name = "OperateResult")
    @TableField(value = "OperateResult")
    private Integer operateResult;

    @JSONField(name = "OperateTarget")
    @TableField(value = "OperateTarget")
    private String operateTarget;

    @JSONField(name = "UserCode")
    @TableField(value = "UserCode")
    private String userCode;

    @JSONField(name = "UserIp")
    @TableField(value = "UserIp")
    private String userIp;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public String getOperata() {
        return operata;
    }

    public void setOperata(String operata) {
        this.operata = operata;
    }

    public Integer getOperateResult() {
        return operateResult;
    }

    public void setOperateResult(Integer operateResult) {
        this.operateResult = operateResult;
    }

    public String getOperateTarget() {
        return operateTarget;
    }

    public void setOperateTarget(String operateTarget) {
        this.operateTarget = operateTarget;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }
}
